package com.yycx.module.bus.client.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.yycx.common.mybatis.base.entity.AbstractEntity;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.yycx.common.mybatis.annotation.TableAlias;

/**
 * 购货方税率配置
 *
 * @author flyme
 * @date 2020-08-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_custom_rate")
@TableAlias("bcr")
@ApiModel(value = "BusCustomRate对象", description = "市场税率配置")
public class BusCustomRate extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "customRateId", type = IdType.ASSIGN_ID)
    private Long customRateId;

    @ApiModelProperty(value = "供货方ID")
    private Long supplierId;

    @ApiModelProperty(value = "药品ID")
    private Long drugsId;

    @ApiModelProperty(value = "部门ID")
    private Long deptId;

    @ApiModelProperty(value = "客户ID")
    private Long customId;

    @ApiModelProperty(value = "市场保证金高开税金费率")
    private BigDecimal customTaxRate;

    @ApiModelProperty(value = "市场结算高开税金费率")
    private BigDecimal customSettleGapUpTaxRate;

    @ApiModelProperty(value = "市场结算费率")
    private BigDecimal customSettleRate;

    @ApiModelProperty(value = "市场结算公式")
    private Long settleFormulaId;


    @ApiModelProperty(value = "部门销售价格(暂未使用)")
    private BigDecimal drugsPrice;

    @ApiModelProperty(value = "部门结算价格")
    private BigDecimal settlePrice;

    @ApiModelProperty(value = "开始日期")
    private Date beginDate;

    @ApiModelProperty(value = "结束日期")
    private Date endDate;

    @ApiModelProperty(value = "状态")
    private Integer configState;

}
